<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div>
	<form id="f_useragent" action="<c:url value='/admin/ua/save.do'/>" method="post">
		<input type="hidden" name="userAgent.agentId" value="${userAgent.agentId }">
		<table id="t_useragent_detail">
			<tr>
				<th width="75px">类型</th>
				<td>
					<select name="userAgent.agentType">
						<option value="wml">WML</option>
						<option value="html">HTML</option>
						<option value="unknow">unknow</option>
					</select>
				</td>
			</tr>
			<tr>
			<th width="75px">值</th>
				<td>
					<input type="text" name="userAgent.agentValue" value="${userAgent.agentValue}"/>
				</td>
			</tr>
			<tr>
			<th width="75px">是否可用</th>
				<td>
					<input type="checkbox" id="f_useragent_enabled" name="userAgent.enabled" value="1"/>
					<script type="text/javascript">
						var useragentEnabled = "<c:out value='${userAgent.enabled}' />";
						var useragentEnabledValue = parseInt(useragentEnabled);
						if(useragentEnabledValue == 1){
							$("#f_useragent_enabled").attr("checked",true);
					  	}
					</script>
				</td>
			</tr>
			<tr>
				<td><input type="submit" name="保存" value="保存"/></td>
			</tr>
		</table>
	</form>
</div>
